package com.xiaoshi.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaoshi.system.dto.SysRoleDto;
import com.xiaoshi.system.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author yuankai
 * @since 2022-03-21
 */
public interface ISysRoleService extends IService<SysRole> {

    IPage getPage(Page page, String roleName);

    List<SysRole> getList();

    boolean delRoleById(Long roleId);

    boolean saveRole(SysRoleDto dto);

    boolean updateRole(SysRole sysRole);
}
